package com.oosterwijk.irc
{
	/**
	 * This class is used to represent the channel info on an IRC server.
	 * Instances of this class are returned by the getChannelList method
	 * in the AsIrcClient class.
	 */
	public class ChannelInfo
	{
		
		private var _name:String;
		private var _userCount:int;
		private var _topic:String;
		
		/**
		 * Constructs a ChannelInfo object with a known name and user count.
		 *
		 * @param name The name of the channel.
		 * @param userCount The number of users in the channel.
		 * @param topic The topic of the channel.
		 */
		public function ChannelInfo(name:String, userCount:int, topic:String = null):void 
		{
			_name = name;
			_userCount = userCount;
			_topic = topic;
		}
		
		
		/**
		 * the name of the channel
		 */
		public function set name(value:String):void
		{
			this._name = value;
		}
		public function get name():String
		{
			return this._name;
		}
		
		/**
		 * the number of users of the channel
		 */
		public function set userCount(value:int):void
		{
			this._userCount = value;
		}
		public function get userCount():int
		{
			return this._userCount;
		}
	
		/**
		 * the topic of the channel
		 */
		public function set topic(value:String):void
		{
			this._topic = value;
		}
		public function get topic():String
		{
			return this._topic;
		}
		
		
	}
}